package com.coursehub.exercise.repository;

import com.coursehub.exercise.entity.FavoriteQuestionBankQuestion;
import com.coursehub.exercise.entity.FavoriteQuestionBankQuestionId;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

public interface FavoriteQuestionBankQuestionRepository extends JpaRepository<FavoriteQuestionBankQuestion, FavoriteQuestionBankQuestionId> {
    List<FavoriteQuestionBankQuestion> findByIdFavoriteQuestionBankId(String favoriteQuestionBankId);
    boolean existsByIdFavoriteQuestionBankIdAndIdQuestionId(String favoriteQuestionBankId, String questionId);
    void deleteByIdFavoriteQuestionBankIdAndIdQuestionId(String favoriteQuestionBankId, String questionId);
}


